<?php if ($sf_params->has('plate')): ?>

<form action="<?php echo url_for2('compose_msg', array('plate' => $sf_params->get('plate'))); ?>" method="post">

  <h3>
    <?php echo __('send message to ${plate}', array('${plate}' => $sf_params->get('plate'))); ?>
    <?php echo link_to1(__('change plate'), '@compose_msg_on_new_plate'); ?>
    <?php include_partial('tracker/status', array('plate' => $sf_params->get('plate'), 'tracking' => $tracking)); ?>
  </h3>

<?php else: ?>

<form action="<?php echo url_for2('compose_msg_on_new_plate'); ?>" method="post">

  <h3>
    <?php echo __('create message'); ?>
  </h3>

  <label>
    <?php echo $form['recipient_plate']->renderLabelName(); ?>
    <?php echo $form['recipient_plate']->renderError(); ?>
    <?php echo $form['recipient_plate']; ?>
  </label>
  <br />

<?php endif; ?>

  <label>
    <?php echo $form['body']->renderLabelName(); ?><br />
    <?php echo $form['body']->renderError(); ?>
    <?php echo $form['body']; ?>
  </label>

  <div>
    <input type="submit" value="<?php echo __('Send message'); ?>" />
  </div>
</form>
